/**
 * Copyright 2011 Enjoy Change, Inc. All rights reserved.
 * Use is subject to license terms.
 */
package com.enjoychange.framework.component.storycase.application.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.enjoychange.framework.component.storycase.StoryCase;
import com.enjoychange.framework.component.storycase.application.IStoryCaseService;
import com.enjoychange.framework.component.storycase.infrastructure.IStoryCaseRepository;

/**
 * @author l90003709
 *
 */
@Service("storyCaseService")
public class StoryCaseService implements IStoryCaseService {
	@Autowired
	IStoryCaseRepository storyCaseRepository;
	

	@Override
	public List<StoryCase> queryStoryCase(Map<String, Object> paras) {
		
		return storyCaseRepository.queryStoryCase(paras);
	}

	@Override
	public void deleteStoryCase(String storyid) {
		storyCaseRepository.deleteStoryCase(storyid);
	}

	@Override
	public void saveStoryCase(StoryCase storyCase, boolean isNewStoryCase) {
		storyCaseRepository.saveOrUpdate(storyCase, isNewStoryCase);
	}

	

}
